<template>
	<view class="Rankinglist-box">
		<view class="Rankinglist-top">
			<u-navbar :border-bottom="false" height="60" title="评分排行榜" :background="background" title-color="#FEFFFE" back-icon-color="#fff"></u-navbar>
		</view>
		<view class="Rankinglist-auto">
			<u-row gutter="16">
				<u-col span="8.5">
					<view class="Rankinglist-auto-scoretopfew">
						该统计图仅展示评分前8名
					</view>
				</u-col>
				<u-col span="3.5">
					<view class="Rankinglist-auto-Timeselection">
						<view class="Rankinglist-auto-Timeselection1" @click="Timeselection">{{ input ? input : '2021.03' }}<u-icon name="arrow-down" style="float: right;" color="#fff" size="35"></u-icon></view>
						<u-picker v-model="show" :params="params" @confirm="confirm"></u-picker>
					</view>
				</u-col>
			</u-row>
			<view>
				
			</view>
		</view>
		<view class="Rankinglist-bottom">
			<view class="Rankinglist-bottom-Mygrades">
				<u-row gutter="16">
					<u-col span="2">
						<view class="Rankinglist-bottom-Mygrades1">我的<br />成绩</view>
					</u-col>
					<u-col span="4">
						<view class="Rankinglist-bottom-fullname">
							<image class="Rankinglist-bottom-fullname-tb" src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"/>
							王阳明
						</view>
					</u-col>
					<u-col span="3">
						<view class="Rankinglist-bottom-ranking">第6名</view>
					</u-col>
					<u-col span="3">
						<view class="Rankinglist-bottom-score">7.5分</view>
					</u-col>
				</u-row>
			</view>
			<view class="padding30">
				<u-row gutter="16">
					<u-col span="1.5">
						<view class="Rankfirst">排名</view>
					</u-col>
					<u-col span="3.5">
						<view class="Rankfirst">姓名</view>
					</u-col>
					<u-col span="2">
						<view class="Rankfirst">录单数</view>
					</u-col>
					<u-col span="3">
						<view class="Rankfirst">返佣金额</view>
					</u-col>
					<u-col span="2">
						<view class="Rankfirst">评分</view>
					</u-col>
				</u-row>
			</view>
			<view class="Rankinglist-bottom-list">
				<view class="thefirst list">
					<u-row gutter="16">
						<u-col span="1.5">
							<view class="Rankinglist thefirst-Rankinglist">1</view>
						</u-col>
						<u-col span="3.5">
							<view class="Rankinglist-bottom-fullname">
								<image class="Rankinglist-bottom-list-img" src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"/>
								王阳明
							</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist">2982</view>
						</u-col>
						<u-col span="3">
							<view class="Rankinglist">12365.4</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist thefirst1">9.0</view>
						</u-col>
					</u-row>
				</view>
				<view class="proximeaccessit list">
					<u-row gutter="16">
						<u-col span="1.5">
							<view class="Rankinglist proximeaccessit-Rankinglist">2</view>
						</u-col>
						<u-col span="3.5">
							<view class="Rankinglist-bottom-fullname">
								<image class="Rankinglist-bottom-list-img" src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"/>
								王阳明
							</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist">2982</view>
						</u-col>
						<u-col span="3">
							<view class="Rankinglist">12365.4</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist proximeaccessit1">8.0</view>
						</u-col>
					</u-row>
				</view>
				<view class="third list">
					<u-row gutter="16">
						<u-col span="1.5">
							<view class="Rankinglist third-Rankinglist">3</view>
						</u-col>
						<u-col span="3.5">
							<view class="Rankinglist-bottom-fullname">
								<image class="Rankinglist-bottom-list-img" src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"/>
								王阳明
							</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist">2982</view>
						</u-col>
						<u-col span="3">
							<view class="Rankinglist">12365.4</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist third1">7.0</view>
						</u-col>
					</u-row>
				</view>
				<!-- 第3名下面 -->
				<view class="list" v-for="item in 4" >
					<u-row gutter="16">
						<u-col span="1.5">
							<view class="Rankinglist colour">4</view>
						</u-col>
						<u-col span="3.5">
							<view class="Rankinglist-bottom-fullname">
								<image class="Rankinglist-bottom-list-img" src="http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg"/>
								王阳明
							</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist">2982</view>
						</u-col>
						<u-col span="3">
							<view class="Rankinglist">12365.4</view>
						</u-col>
						<u-col span="2">
							<view class="Rankinglist colour">6.0</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				background: {
					backgroundColor: '#92C15E',
				},
				show: false,
				input: '',
				params: {
					year: true,
					month: true,
					day: false,
					hour: false,
					minute: false,
					second: false
				},
			}
		},
		methods: {
			Timeselection(){
				this.mode = 'time';
				this.show = true;
			},
			confirm(e) {
				console.log(e);
				this.input = '';
				if (this.mode == 'time') {
					if (this.params.year) this.input += e.year;
					if (this.params.month) this.input += '.' + e.month;
					if (this.params.day) this.input += '.' + e.day;
					if (this.params.hour) this.input += ' ' + e.hour;
					if (this.params.minute) this.input += ':' + e.minute;
					if (this.params.second) this.input += ':' + e.second;
				} else if (this.mode == 'region') {
					this.input = e.province.label + '.' + e.city.label + '.' + e.area.label;
				} else if (this.mode == 'selector') {
					this.input = this.range[e[0]];
				} else if (this.mode == 'multiSelector') {
					this.input = this.range[0][e[0]] + '.' + this.range[1][e[1]] + '.' + this.range[2][e[2]];
				}
			},
		}
	}
</script>

<style>
	.padding30{
		padding: 30upx;
	}
	.Rankinglist-box{}
	.Rankinglist-top{}
	.Rankinglist-auto{
		padding: 30upx;
		height: 200px;
		padding-top: 0;
		padding-bottom: 40upx;
		background-color: #92C15E;
	}
	.Rankinglist-auto-scoretopfew{
		color: #fff;
		font-size: 25upx;
		padding-left: 10px;
		position: relative;
	}
	.Rankinglist-auto-scoretopfew:after{
		left: 0;
		top: 6px;
		content: "";
		width: 10upx;
		height: 10upx;
		position: absolute;
		border-radius: 50%;
		background-color: #fff;
	}
	.Rankinglist-auto-Timeselection1{
		color: #fff;
		padding: 12upx 20upx;
		text-align: left;
		border-radius: 6px;
		border: 1px solid #FEFFFE;
	}
	.Rankinglist-bottom{
		margin: 30upx;
		margin-top: -40upx;
		border-radius: 10upx;
		padding-bottom: 35upx;
		background-color: #fff;
		box-shadow: 0px 5px 20px 0px rgba(153, 153, 153, 0.7);
	}
	.Rankinglist-bottom-Mygrades{
		padding: 35upx 40upx;
		border-bottom: 6upx solid #F3F8FF;
	}
	.Rankinglist-bottom-Mygrades1{
		color: #92C15E;
		font-size: 32upx;
		font-weight: bold;
	}
	.Rankinglist-bottom-fullname{
		display: flex;
		color: #333333;
		font-size: 30upx;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		align-items: center;
	}
	.Rankinglist-bottom-fullname-tb{
		width: 78upx;
		height: 78upx;
		margin-right: 15upx;
		border-radius: 100%;
	}
	.Rankinglist-bottom-ranking{
		color: #92C15E;
		font-size: 30upx;
		text-align: right;
		font-weight: bold;
	}
	.Rankinglist-bottom-score{
		color: #92C15E;
		font-size: 30upx;
		text-align: right;
		font-weight: bold;
	}
	.Rankfirst{
		color: #999999;
		font-size: 26upx;
		text-align: center;
	}
	.Rankinglist{
		font-size: 28upx;
		font-weight: bold;
		color: #333333;
		height: 30px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.Rankinglist-bottom-list{
		padding: 0 30upx;
	}
	.Rankinglist-bottom-list-img{
		width: 25px;
		height: 25px;
		margin-right: 5upx;
		border-radius: 100%;
	}
	.list{
		margin-bottom: 30upx;
	}
	.list:nth-last-child(1){
		margin-bottom: 0;
	}
	.thefirst .thefirst1{
		color: #FF9D2A;
	}
	.proximeaccessit .proximeaccessit1{
		color: #2177D9;
	}
	.third .third1{
		color: #C4D600;
	}
	.colour{
		color: #999999;
	}
	.thefirst-Rankinglist{
		color: #fff;
		background: url(../../../static/Rankingone.png) no-repeat 2upx;
		background-size: 60upx 60upx;
	}
	.proximeaccessit-Rankinglist{
		color: #fff;
		background: url(../../../static/Secondplace.png) no-repeat 2upx;
		background-size: 60upx 60upx;
	}
	.third-Rankinglist{
		color: #fff;
		background: url(../../../static/Thirdplace.png) no-repeat 2upx;
		background-size: 60upx 60upx;
	}
</style>
